package com.hjms.platformback.controller;

import com.hjms.tenant.contracts.vo.tenant.TenantVo;
import com.hjms.tenant.share.ITenantFeignService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 何杨谊
 * @description: 租户
 * @date 2023/1/2 13:37
 */
@Api(tags = "租户")
@RestController
@RequestMapping("api/tenant")
public class TenantController {
    @Autowired
    private ITenantFeignService tenantService;

    /**
     * 获取租户信息
     * @param tenantId 租户id
     * @return
     */
    @GetMapping("{tenantId}")
    @ApiOperation(value = "获取商品信息")
    public TenantVo Get(@PathVariable(value = "tenantId") String tenantId){return  tenantService.Get(tenantId);}
}